/** 数据采集 **/
let dataAcquisition = [
  // 工序记录模板列表
  {
    path: '/processTemplate',
    name: 'processTemplate',
    component(resolve) {
      require(['../view/dataAcquisition/templateManage/processTemplate/ProcessTemplateD'], resolve)
    },
    meta: {
      keepAlive: true,
      menuItem: 'processTemplate',
      subMenu: 'templateManage',
      rootDir: 'dataAcquisition',
      title: '工序记录模板'
    }
  },
  // 设备数据上传
  {
    path: '/deviceDataUpload',
    name: 'deviceDataUpload',
    component(resolve) {
      require(['../view/dataAcquisition/dataAcquisition/deviceDataUpload/DeviceDataUpload'], resolve)
    },
    meta: {
      keepAlive: true,
      menuItem: 'deviceDataUpload',
      subMenu: 'dataAcquisition',
      rootDir: 'dataAcquisition',
      title: '设备数据上传'
    }
  },
  // 工艺参数查询及对比
  {
    path: '/paramCompare',
    name: 'paramCompare',
    component(resolve) {
      require(['../view/dataAcquisition/dataAcquisition/paramCompare/ParamCompare'], resolve)
    },
    meta: {
      keepAlive: true,
      menuItem: 'paramCompare',
      subMenu: 'dataAcquisition',
      rootDir: 'dataAcquisition',
      title: '工艺参数查询及对比'
    }
  },
  // 工艺参数查询及对比详情
  {
    path: '/paramCompareDetail',
    name: 'paramCompareDetail',
    component(resolve) {
      require(['../view/dataAcquisition/dataAcquisition/paramCompare/ParamCompareDetail'], resolve)
    },
    meta: {
      keepAlive: false,
      menuItem: 'paramCompare',
      subMenu: 'dataAcquisition',
      rootDir: 'dataAcquisition',
      title: '工艺参数对比'
    }
  }
]

export default dataAcquisition
